//
//  KMeetingRequestCommandDTO.m
//  KutulusLaw
//
//  Created by Mahmood1 on 12/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "KMeetingRequestCommandDTO.h"

@implementation KMeetingRequestCommandDTO
@synthesize meeting_date, meeting_duration, meeting_type, meeting_language, meeting_notes, meeting_place, meeting_record, mentor_request, mentor_required;

- (id)initWithSessionID:(NSString *)sessionID {
	if (self = [self init]) {
		self.action = kAPI_MEETING_REQUEST_ACTION;
		self.sessionID = sessionID;
	}
	
	return self;
}

- (NSMutableDictionary*) dictionary {
	NSMutableDictionary *dic = [super dictionary];
	
	if (!dic) return nil;
	
	[dic setObject:self.meeting_date forKey:kKEY_MEETING_DATE];
	[dic setObject:[NSString stringWithFormat:@"%d", self.meeting_duration] forKey:kKEY_MEETING_DURATION];
	[dic setObject:self.meeting_language forKey:kKEY_MEETING_LANGUAGE];
	[dic setObject:self.meeting_notes forKey:kKEY_MEETING_NOTES];
	[dic setObject:self.meeting_place forKey:kKEY_MEETING_PLACE];
	[dic setObject:[NSString stringWithFormat:@"%d", self.meeting_record] forKey:kKEY_MEETING_RECORD];
	[dic setObject:self.meeting_type forKey:kKEY_MEETING_TYPE];
	[dic setObject:[NSString stringWithFormat:@"%d",self.mentor_request] forKey:kKEY_MENTOR_REQUEST];
	[dic setObject:self.mentor_required forKey:kKEY_MENTOR_REQUIRED];
	
	return dic;
}
@end
